﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CloudClass.Models
{
    /// <summary>
    /// 讨论表
    /// </summary>
    public class Talk
    {

        public virtual int Id { get; set; }

        /// <summary>
        /// 课程编号
        /// </summary>
        public virtual CourseInfo CourseInfo { get; set; }

        /// <summary>
        /// 针对课时，0代表整个课程
        /// </summary>
        public virtual int ToLesson { get; set; }

        /// <summary>
        /// 主题
        /// </summary>
        public virtual string Subject { get; set; }
        
        /// <summary>
        /// 补充描述
        /// </summary>
        public virtual string AddDesc { get; set; }

        /// <summary>
        /// 是否匿名1是0否
        /// </summary>
        public virtual int IsPrivate { get; set; }

        /// <summary>
        /// 发布者
        /// </summary>
        public virtual UserInfo PublishUserInfo { get; set; }

        /// <summary>
        /// 发布时间
        /// </summary>
        public virtual DateTime PublishTime { get; set; }

        /// <summary>
        /// 讨论区域（1：教师答疑区；2：综合讨论区）
        /// </summary>
        public virtual int TalkArea { get; set; }

        /// <summary>
        /// 最新活动时间
        /// </summary>
        public virtual DateTime LastActivityTime { get; set; }

        /// <summary>
        /// 浏览次数
        /// </summary>
        public virtual int ReadTimes { get; set; }

    }
}